
//               File: ClienteDataSet
//        Description: Cliente
//             Author: DeKlarit - Language C# - Generator Version 10_1_3-31907 - Specifier Version 10_1_3.31907
//       Program type: Deklarit Business Component
//          Main DBMS: Microsoft SqlServer

namespace DeklaritModel {
   using System;
   using System.Collections;
   using System.Data;
   using System.Data.SqlClient;
   using System.Data.Common;
   using System.ComponentModel.Design;
   using System.Xml;
   using System.Configuration;
   using System.Data.SqlTypes;
   [Serializable()]
   public partial class ClienteDataSet : System.Data.DataSet
   {
      private ClienteDataTable tableCliente ;
      [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
      public ClienteDataTable Cliente
      {
         get {
            return this.tableCliente ;
         }

      }

      private System.Data.SchemaSerializationMode _schemaSerializationMode = System.Data.SchemaSerializationMode.ExcludeSchema;
      
      [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
      public ClienteDataSet() {
          this.BeginInit();
          this.InitClass();
          System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
          base.Tables.CollectionChanged += schemaChangedHandler;
          base.Relations.CollectionChanged += schemaChangedHandler;
          this.EndInit();
      }
      
      public override System.Data.SchemaSerializationMode SchemaSerializationMode {
          get {
              return this._schemaSerializationMode;
          }
          set {
              this._schemaSerializationMode = value;
          }
      }
      
      [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
      public new System.Data.DataTableCollection Tables {
          get {
              return base.Tables;
          }
      }
      
      [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
      public new System.Data.DataRelationCollection Relations {
          get {
              return base.Relations;
          }
      }
      
      [System.ComponentModel.DefaultValueAttribute(true)]
      public new bool EnforceConstraints {
          get {
              return base.EnforceConstraints;
          }
          set {
              base.EnforceConstraints = value;
          }
      }
      
      protected override void InitializeDerivedDataSet() {
          this.BeginInit();
          this.InitClassBase();
          this.EndInit();
      }
      
      public override System.Data.DataSet Clone() {
          ClienteDataSet cln = ((ClienteDataSet)(base.Clone()));
          cln.InitVars();
          return cln;
      }
      
      protected override bool ShouldSerializeTables() {
      	    return false;
      }
      
      protected override bool ShouldSerializeRelations() {
      	    return false;
      }
      
      private bool ShouldSerializeCliente() { 
		return false; 
	  }
              
      protected override void ReadXmlSerializable(XmlReader reader) 
      {
          if ((this.DetermineSchemaSerializationMode(reader) == System.Data.SchemaSerializationMode.IncludeSchema)) 
          {
      		this.Reset();
      		DataSet ds = new DataSet();
              ds.ReadXml(reader);
              if ((ds.Tables["Cliente"] != null))  
        { 
			base.Tables.Add(new ClienteDataTable(ds.Tables["Cliente"])); 
        }		
      	    this.DataSetName = ds.DataSetName;
      		this.Prefix = ds.Prefix;
      		this.Namespace = ds.Namespace;
      		this.Locale = ds.Locale;
      		this.CaseSensitive = ds.CaseSensitive;
      		this.EnforceConstraints = ds.EnforceConstraints;
      		this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
      		this.InitVars();
      	}
          else 
          {
      	  this.ExtendedProperties.Clear();
              this.ReadXml(reader);
              this.InitVars();
          }
      }
      
      protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() 
      {
          System.IO.MemoryStream stream = new System.IO.MemoryStream();
          this.WriteXmlSchema(new XmlTextWriter(stream, null));
          stream.Position = 0;
          return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
      }
      
      internal void InitVars() 
      {
      	this.InitVars(true);
      }
      
      internal void InitVars(bool initTable) {
          this.tableCliente = ((ClienteDataTable)(base.Tables["Cliente"]));		
		  if ((initTable == true)) { 
			if ((this.tableCliente != null)) { 
				this.tableCliente.InitVars(); 
			} 
	  	  }  
      	this.RemotingFormat = SerializationFormat.Binary;
      } 
             
      private void SchemaChanged(object sender, System.ComponentModel.CollectionChangeEventArgs e) {
          if ((e.Action == System.ComponentModel.CollectionChangeAction.Remove)) {
              this.InitVars();
          }
      }
      
      public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
          ClienteDataSet ds = new ClienteDataSet();
          System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
          System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
          xs.Add(ds.GetSchemaSerializable());
          System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
          any.Namespace = ds.Namespace;
          sequence.Items.Add(any);
          type.Particle = sequence;
          return type;
      }
      [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
      protected ClienteDataSet(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context, false)
      {
      	if ((this.IsBinarySerialized(info, context) == true)) 
      	{
      		this.InitVars(false);
      		System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
      		this.Tables.CollectionChanged += schemaChangedHandler1;
      		this.Relations.CollectionChanged += schemaChangedHandler1;
      		return;
      	}
      
      	string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
      	if ((this.DetermineSchemaSerializationMode(info, context) == System.Data.SchemaSerializationMode.IncludeSchema)) 
      	{
      		System.Data.DataSet ds = new System.Data.DataSet();
              ds.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
              if ((ds.Tables["Cliente"] != null))  
        { 
			base.Tables.Add(new ClienteDataTable(ds.Tables["Cliente"])); 
        }        
              this.DataSetName = ds.DataSetName;
              this.Prefix = ds.Prefix;
              this.Namespace = ds.Namespace;
              this.Locale = ds.Locale;
              this.CaseSensitive = ds.CaseSensitive;
              this.EnforceConstraints = ds.EnforceConstraints;
              this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
              this.InitVars();
           }
           else 
           {
      		this.ReadXmlSchema(new System.Xml.XmlTextReader(new System.IO.StringReader(strSchema)));
           }
           
           this.GetSerializationData(info, context);
           System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
           base.Tables.CollectionChanged += schemaChangedHandler;
           this.Relations.CollectionChanged += schemaChangedHandler;
      }
      
      private void InitClass( )
      {
         InitClassBase( ) ;
         this.ExtendedProperties.Add( "DataAdapterName", "ClienteDataAdapter") ;
         this.ExtendedProperties.Add( "Deklarit.PermissionBaseId", "2001") ;
         this.ExtendedProperties.Add( "DataSetName", "ClienteDataSet") ;
         this.ExtendedProperties.Add( "DataAdapterInterfaceName", "IClienteDataAdapter") ;
         this.ExtendedProperties.Add( "ObjectName", "Cliente") ;
         this.ExtendedProperties.Add( "ObjectDescription", "Cliente") ;
         this.ExtendedProperties.Add( "ObjectType", "BusinessComponent") ;
         this.ExtendedProperties.Add( "ObjectPath", "\\Objects") ;
         this.ExtendedProperties.Add( "NameSpace", "DeklaritModel") ;
         this.ExtendedProperties.Add( "DataChangeFrequency", "PrettyOften") ;
         this.ExtendedProperties.Add( "CachePriority", "Medium") ;
         this.ExtendedProperties.Add( "Deklarit.AddNewOptionToLowCardinality", "True") ;
         this.ExtendedProperties.Add( "Deklarit.DescriptionAttribute", "") ;
         this.ExtendedProperties.Add( "Deklarit.LowCardinality", "False") ;
         this.ExtendedProperties.Add( "Deklarit.FormReport", "true") ;
         this.ExtendedProperties.Add( "Deklarit.InstanceReport", "false") ;
         this.ExtendedProperties.Add( "Deklarit.ListReport", "true") ;
      }

      private void InitClassBase( )
      {
         this.DataSetName = "ClienteDataSet" ;
         this.Namespace = "http://www.tempuri.org/Cliente" ;
         this.tableCliente = new ClienteDataTable() ;
         this.Tables.Add( this.tableCliente) ;
      }

      public delegate  void ClienteRowChangeEventHandler( object sender ,
                                                          ClienteRowChangeEvent e );
      [Serializable()]
      public partial class ClienteDataTable : DataTable, System.Collections.IEnumerable
      {
         private DataColumn columnClienteId ;
         private DataColumn columnClienteName ;
         private DataColumn columnClienteGender ;
         private DataColumn columnClienteAge ;
         private DataColumn columnClienteBirthday ;
         private DataColumn columnClienteIsActive ;
         private DataColumn columnPaisId ;
         private DataColumn columnPaisNombre ;
         private DataColumn columnClientePicture ;
         public ClienteDataTable() 
         {
             this.TableName = "Cliente";
             this.BeginInit();
             this.InitClass();
             this.EndInit();
         }
         
         internal ClienteDataTable(System.Data.DataTable table) {
             this.TableName = table.TableName;
             if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
                 this.CaseSensitive = table.CaseSensitive;
             }
             if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
                 this.Locale = table.Locale;
             }
             if ((table.Namespace != table.DataSet.Namespace)) {
                 this.Namespace = table.Namespace;
             }
             this.Prefix = table.Prefix;
             this.MinimumCapacity = table.MinimumCapacity;
         }
         
         [System.ComponentModel.Browsable(false)]
         public int Count {
             get {
                 return this.Rows.Count;
             }
         }
         
         public ClienteRow this[int index] {
             get {
                 return ((ClienteRow)(this.Rows[index]));
             }
         }
         
         public virtual System.Collections.IEnumerator GetEnumerator() {
             return this.Rows.GetEnumerator();
         }
         
         public override System.Data.DataTable Clone() {
             ClienteDataTable cln = ((ClienteDataTable)(base.Clone()));
             cln.InitVars();
             return cln;
         }
         
         protected override System.Data.DataTable CreateInstance() {
             return new ClienteDataTable();
         }
         
         public void AddClienteRow(ClienteRow row) {
             this.Rows.Add(row);
         }
         
         public ClienteRow NewClienteRow() {
             return ((ClienteRow)(this.NewRow()));
         }
         
         protected override System.Data.DataRow NewRowFromBuilder(System.Data.DataRowBuilder builder) {
             return new ClienteRow(builder);
         }
         
         protected override System.Type GetRowType() {
             return typeof(ClienteRow);
         }
         
         public void RemoveClienteRow(ClienteRow row) {
             this.Rows.Remove(row);
         }
         
         public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
             System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
             System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
             ClienteDataSet ds = new ClienteDataSet();
             xs.Add(ds.GetSchemaSerializable());
             System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
             any1.Namespace = "http://www.w3.org/2001/XMLSchema";
             any1.MinOccurs = new decimal(0);
             any1.MaxOccurs = decimal.MaxValue;
             any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
             sequence.Items.Add(any1);
             System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
             any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
             any2.MinOccurs = new decimal(1);
             any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
             sequence.Items.Add(any2);
             System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
             attribute1.Name = "namespace";
             attribute1.FixedValue = ds.Namespace;
             type.Attributes.Add(attribute1);
             System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
             attribute2.Name = "tableTypeName";
             attribute2.FixedValue = "ClienteDataTable";
             type.Attributes.Add(attribute2);
             type.Particle = sequence;
             return type;
         }
         protected ClienteDataTable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                 base(info, context) 
         {
             this.InitVars();
         }
         public DataColumn ClienteIdColumn
         {
            get {
               return this.columnClienteId ;
            }

         }

         public DataColumn ClienteNameColumn
         {
            get {
               return this.columnClienteName ;
            }

         }

         public DataColumn ClienteGenderColumn
         {
            get {
               return this.columnClienteGender ;
            }

         }

         public DataColumn ClienteAgeColumn
         {
            get {
               return this.columnClienteAge ;
            }

         }

         public DataColumn ClienteBirthdayColumn
         {
            get {
               return this.columnClienteBirthday ;
            }

         }

         public DataColumn ClienteIsActiveColumn
         {
            get {
               return this.columnClienteIsActive ;
            }

         }

         public DataColumn PaisIdColumn
         {
            get {
               return this.columnPaisId ;
            }

         }

         public DataColumn PaisNombreColumn
         {
            get {
               return this.columnPaisNombre ;
            }

         }

         public DataColumn ClientePictureColumn
         {
            get {
               return this.columnClientePicture ;
            }

         }

         public event ClienteRowChangeEventHandler ClienteRowChanged ;
         public event ClienteRowChangeEventHandler ClienteRowChanging ;
         public event ClienteRowChangeEventHandler ClienteRowDeleted ;
         public event ClienteRowChangeEventHandler ClienteRowDeleting ;
         public ClienteRow AddClienteRow( String clienteName ,
                                          GenderEnum clienteGender ,
                                          short clienteAge ,
                                          DateTime clienteBirthday ,
                                          bool clienteIsActive ,
                                          short paisId ,
                                          byte[] clientePicture )
         {
            ClienteRow rowClienteRow = ((ClienteRow)(this.NewRow())) ;
            rowClienteRow["ClienteName"] = clienteName ;
            rowClienteRow["ClienteGender"] = clienteGender ;
            rowClienteRow["ClienteAge"] = clienteAge ;
            rowClienteRow["ClienteBirthday"] = clienteBirthday ;
            rowClienteRow["ClienteIsActive"] = clienteIsActive ;
            rowClienteRow["PaisId"] = paisId ;
            rowClienteRow["ClientePicture"] = clientePicture ;
            this.Rows.Add( rowClienteRow) ;
            return rowClienteRow ;
         }

         public ClienteRow FindByClienteId( short clienteId )
         {
            return ((ClienteRow)(this.Rows.Find(new  object[] {clienteId}))) ;
         }

         internal void InitVars( )
         {
            this.columnClienteId = this.Columns["ClienteId"] ;
            this.columnClienteName = this.Columns["ClienteName"] ;
            this.columnClienteGender = this.Columns["ClienteGender"] ;
            this.columnClienteAge = this.Columns["ClienteAge"] ;
            this.columnClienteBirthday = this.Columns["ClienteBirthday"] ;
            this.columnClienteIsActive = this.Columns["ClienteIsActive"] ;
            this.columnPaisId = this.Columns["PaisId"] ;
            this.columnPaisNombre = this.Columns["PaisNombre"] ;
            this.columnClientePicture = this.Columns["ClientePicture"] ;
         }

         public void InitClass( )
         {
            this.columnClienteId = new DataColumn( "ClienteId", typeof(short), "", System.Data.MappingType.Element) ;
            this.columnClienteId.AllowDBNull = false ;
            this.columnClienteId.Caption = "Cliente" ;
            this.columnClienteId.Unique = true ;
            this.columnClienteId.AutoIncrement = true ;
            this.columnClienteId.AutoIncrementSeed = -1 ;
            this.columnClienteId.AutoIncrementStep = -1 ;
            this.columnClienteId.ExtendedProperties.Add( "AutoNumber", "true") ;
            this.columnClienteId.ExtendedProperties.Add( "IsKey", "true") ;
            this.columnClienteId.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClienteId.ExtendedProperties.Add( "DeklaritType", "int") ;
            this.columnClienteId.ExtendedProperties.Add( "Description", "Cliente") ;
            this.columnClienteId.ExtendedProperties.Add( "Length", "4") ;
            this.columnClienteId.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClienteId.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClienteId.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClienteId.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnClienteId.ExtendedProperties.Add( "Deklarit.InternalName", "ClienteId") ;
            this.Columns.Add( this.columnClienteId) ;
            this.columnClienteName = new DataColumn( "ClienteName", typeof(String), "", System.Data.MappingType.Element) ;
            this.columnClienteName.AllowDBNull = false ;
            this.columnClienteName.Caption = "Cliente" ;
            this.columnClienteName.MaxLength = 20 ;
            this.columnClienteName.DefaultValue = System.Convert.DBNull ;
            this.columnClienteName.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnClienteName.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClienteName.ExtendedProperties.Add( "DeklaritType", "char") ;
            this.columnClienteName.ExtendedProperties.Add( "Description", "Cliente") ;
            this.columnClienteName.ExtendedProperties.Add( "Length", "20") ;
            this.columnClienteName.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClienteName.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClienteName.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClienteName.ExtendedProperties.Add( "Deklarit.Casing", "default") ;
            this.columnClienteName.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnClienteName.ExtendedProperties.Add( "Deklarit.InternalName", "ClienteName") ;
            this.Columns.Add( this.columnClienteName) ;
            this.columnClienteGender = new DataColumn( "ClienteGender", typeof(short), "", System.Data.MappingType.Element) ;
            this.columnClienteGender.AllowDBNull = false ;
            this.columnClienteGender.Caption = "Sexo" ;
            this.columnClienteGender.DefaultValue = System.Convert.DBNull ;
            this.columnClienteGender.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnClienteGender.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClienteGender.ExtendedProperties.Add( "DeklaritType", "int") ;
            this.columnClienteGender.ExtendedProperties.Add( "Description", "Sexo") ;
            this.columnClienteGender.ExtendedProperties.Add( "Length", "1") ;
            this.columnClienteGender.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClienteGender.ExtendedProperties.Add( "IsEnumeration", "true") ;
            this.columnClienteGender.ExtendedProperties.Add( "EnumerationType", "GenderEnum") ;
            this.columnClienteGender.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClienteGender.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClienteGender.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnClienteGender.ExtendedProperties.Add( "Deklarit.InternalName", "ClienteGender") ;
            this.Columns.Add( this.columnClienteGender) ;
            this.columnClienteAge = new DataColumn( "ClienteAge", typeof(short), "", System.Data.MappingType.Element) ;
            this.columnClienteAge.AllowDBNull = false ;
            this.columnClienteAge.Caption = "Edad" ;
            this.columnClienteAge.DefaultValue = System.Convert.DBNull ;
            this.columnClienteAge.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnClienteAge.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClienteAge.ExtendedProperties.Add( "DeklaritType", "int") ;
            this.columnClienteAge.ExtendedProperties.Add( "Description", "Edad") ;
            this.columnClienteAge.ExtendedProperties.Add( "Length", "2") ;
            this.columnClienteAge.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClienteAge.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClienteAge.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClienteAge.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnClienteAge.ExtendedProperties.Add( "Deklarit.InternalName", "ClienteAge") ;
            this.Columns.Add( this.columnClienteAge) ;
            this.columnClienteBirthday = new DataColumn( "ClienteBirthday", typeof(DateTime), "", System.Data.MappingType.Element) ;
            this.columnClienteBirthday.AllowDBNull = false ;
            this.columnClienteBirthday.Caption = "Birthday" ;
            this.columnClienteBirthday.DefaultValue = System.Convert.DBNull ;
            this.columnClienteBirthday.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "DeklaritType", "date") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "Description", "Birthday") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "Length", "8") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClienteBirthday.ExtendedProperties.Add( "Deklarit.InternalName", "ClienteBirthday") ;
            this.Columns.Add( this.columnClienteBirthday) ;
            this.columnClienteIsActive = new DataColumn( "ClienteIsActive", typeof(bool), "", System.Data.MappingType.Element) ;
            this.columnClienteIsActive.AllowDBNull = false ;
            this.columnClienteIsActive.Caption = "Is Active?" ;
            this.columnClienteIsActive.DefaultValue = System.Convert.DBNull ;
            this.columnClienteIsActive.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "DeklaritType", "boolean") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "Description", "Is Active?") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "Length", "4") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnClienteIsActive.ExtendedProperties.Add( "Deklarit.InternalName", "ClienteIsActive") ;
            this.Columns.Add( this.columnClienteIsActive) ;
            this.columnPaisId = new DataColumn( "PaisId", typeof(short), "", System.Data.MappingType.Element) ;
            this.columnPaisId.AllowDBNull = false ;
            this.columnPaisId.Caption = "Id Pais" ;
            this.columnPaisId.DefaultValue = System.Convert.DBNull ;
            this.columnPaisId.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnPaisId.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnPaisId.ExtendedProperties.Add( "DeklaritType", "int") ;
            this.columnPaisId.ExtendedProperties.Add( "Description", "Id Pais") ;
            this.columnPaisId.ExtendedProperties.Add( "Length", "4") ;
            this.columnPaisId.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnPaisId.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnPaisId.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnPaisId.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnPaisId.ExtendedProperties.Add( "Deklarit.InternalName", "PaisId") ;
            this.Columns.Add( this.columnPaisId) ;
            this.columnPaisNombre = new DataColumn( "PaisNombre", typeof(String), "", System.Data.MappingType.Element) ;
            this.columnPaisNombre.AllowDBNull = true ;
            this.columnPaisNombre.Caption = "Nombre" ;
            this.columnPaisNombre.MaxLength = 20 ;
            this.columnPaisNombre.DefaultValue = System.Convert.DBNull ;
            this.columnPaisNombre.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnPaisNombre.ExtendedProperties.Add( "ReadOnly", "true") ;
            this.columnPaisNombre.ExtendedProperties.Add( "DeklaritType", "char") ;
            this.columnPaisNombre.ExtendedProperties.Add( "Description", "Nombre") ;
            this.columnPaisNombre.ExtendedProperties.Add( "Length", "20") ;
            this.columnPaisNombre.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnPaisNombre.ExtendedProperties.Add( "AllowDBNulls", "true") ;
            this.columnPaisNombre.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnPaisNombre.ExtendedProperties.Add( "Deklarit.Casing", "default") ;
            this.columnPaisNombre.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnPaisNombre.ExtendedProperties.Add( "Deklarit.InternalName", "PaisNombre") ;
            this.Columns.Add( this.columnPaisNombre) ;
            this.columnClientePicture = new DataColumn( "ClientePicture", typeof(byte[]), "", System.Data.MappingType.Element) ;
            this.columnClientePicture.AllowDBNull = false ;
            this.columnClientePicture.Caption = "Picture" ;
            this.columnClientePicture.DefaultValue = System.Convert.DBNull ;
            this.columnClientePicture.ExtendedProperties.Add( "IsKey", "false") ;
            this.columnClientePicture.ExtendedProperties.Add( "ReadOnly", "false") ;
            this.columnClientePicture.ExtendedProperties.Add( "DeklaritType", "bitstr") ;
            this.columnClientePicture.ExtendedProperties.Add( "Description", "Picture") ;
            this.columnClientePicture.ExtendedProperties.Add( "Length", "4") ;
            this.columnClientePicture.ExtendedProperties.Add( "Decimals", "0") ;
            this.columnClientePicture.ExtendedProperties.Add( "AllowDBNulls", "false") ;
            this.columnClientePicture.ExtendedProperties.Add( "IsInReader", "true") ;
            this.columnClientePicture.ExtendedProperties.Add( "Deklarit.IsPassword", "false") ;
            this.columnClientePicture.ExtendedProperties.Add( "Deklarit.MimeType", "image/jpg") ;
            this.columnClientePicture.ExtendedProperties.Add( "Deklarit.InternalName", "ClientePicture") ;
            this.Columns.Add( this.columnClientePicture) ;
            this.PrimaryKey = new  DataColumn[]  {this.columnClienteId} ;
            this.ExtendedProperties.Add( "ParentLvl", "") ;
            this.ExtendedProperties.Add( "LevelName", "Cliente") ;
            this.ExtendedProperties.Add( "Description", "Cliente") ;
            this.ExtendedProperties.Add( "msprop:AllowInsert", "true") ;
            this.ExtendedProperties.Add( "msprop:AllowUpdate", "true") ;
            this.ExtendedProperties.Add( "msprop:AllowDelete", "true") ;
            this.ExtendedProperties.Add( "Deklarit.EditInDataGrid", "True") ;
         }

         protected override void OnRowChanged( DataRowChangeEventArgs e )
         {
            base.OnRowChanged( e) ;
            if ( this.ClienteRowChanged != null )
            {
               this.ClienteRowChanged( this, new ClienteRowChangeEvent( ((ClienteRow)(e.Row)), e.Action)) ;
            }
         }

         protected override void OnRowChanging( DataRowChangeEventArgs e )
         {
            base.OnRowChanging( e) ;
            if ( this.ClienteRowChanging != null )
            {
               this.ClienteRowChanging( this, new ClienteRowChangeEvent( ((ClienteRow)(e.Row)), e.Action)) ;
            }
         }

         protected override void OnRowDeleted( DataRowChangeEventArgs e )
         {
            base.OnRowDeleted( e) ;
            if ( this.ClienteRowDeleted != null )
            {
               this.ClienteRowDeleted( this, new ClienteRowChangeEvent( ((ClienteRow)(e.Row)), e.Action)) ;
            }
         }

         protected override void OnRowDeleting( DataRowChangeEventArgs e )
         {
            base.OnRowDeleting( e) ;
            if ( this.ClienteRowDeleting != null )
            {
               this.ClienteRowDeleting( this, new ClienteRowChangeEvent( ((ClienteRow)(e.Row)), e.Action)) ;
            }
         }

      }

      public class ClienteRow : DataRow
      {
         private ClienteDataTable tableCliente ;
         internal ClienteRow( DataRowBuilder rb ) : base(rb)
         {
            this.tableCliente = ((ClienteDataTable)(this.Table)) ;
         }

         ///  <summary>
         ///   Gets or sets the Cliente.
         ///  </summary>
         public short ClienteId
         {
            get {
               return ((short)(this[this.tableCliente.ClienteIdColumn])) ;
            }

            set {
               this[this.tableCliente.ClienteIdColumn] = value ;
            }

         }

         public bool IsClienteIdNull( )
         {
            return this.IsNull( this.tableCliente.ClienteIdColumn) ;
         }

         ///  <summary>
         ///   Gets or sets the Cliente.
         ///  </summary>
         public String ClienteName
         {
            get {
               try
               {
                  return ((String)(this[this.tableCliente.ClienteNameColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value ClienteName because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.ClienteNameColumn] = value ;
            }

         }

         public bool IsClienteNameNull( )
         {
            return this.IsNull( this.tableCliente.ClienteNameColumn) ;
         }

         public void SetClienteNameNull( )
         {
            this[this.tableCliente.ClienteNameColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets the Sexo.
         ///  </summary>
         public GenderEnum ClienteGender
         {
            get {
               try
               {
                  return ((GenderEnum)(((short)(this[this.tableCliente.ClienteGenderColumn])))) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value ClienteGender because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.ClienteGenderColumn] = ((short)(value)) ;
            }

         }

         public bool IsClienteGenderNull( )
         {
            return this.IsNull( this.tableCliente.ClienteGenderColumn) ;
         }

         public void SetClienteGenderNull( )
         {
            this[this.tableCliente.ClienteGenderColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets the Edad.
         ///  </summary>
         public short ClienteAge
         {
            get {
               try
               {
                  return ((short)(this[this.tableCliente.ClienteAgeColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value ClienteAge because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.ClienteAgeColumn] = value ;
            }

         }

         public bool IsClienteAgeNull( )
         {
            return this.IsNull( this.tableCliente.ClienteAgeColumn) ;
         }

         public void SetClienteAgeNull( )
         {
            this[this.tableCliente.ClienteAgeColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets the Birthday.
         ///  </summary>
         public DateTime ClienteBirthday
         {
            get {
               try
               {
                  return ((DateTime)(this[this.tableCliente.ClienteBirthdayColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value ClienteBirthday because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.ClienteBirthdayColumn] = value ;
            }

         }

         public bool IsClienteBirthdayNull( )
         {
            return this.IsNull( this.tableCliente.ClienteBirthdayColumn) ;
         }

         public void SetClienteBirthdayNull( )
         {
            this[this.tableCliente.ClienteBirthdayColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets if Is Active?.
         ///  </summary>
         public bool ClienteIsActive
         {
            get {
               try
               {
                  return ((bool)(this[this.tableCliente.ClienteIsActiveColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value ClienteIsActive because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.ClienteIsActiveColumn] = value ;
            }

         }

         public bool IsClienteIsActiveNull( )
         {
            return this.IsNull( this.tableCliente.ClienteIsActiveColumn) ;
         }

         public void SetClienteIsActiveNull( )
         {
            this[this.tableCliente.ClienteIsActiveColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets the Id Pais.
         ///  </summary>
         public short PaisId
         {
            get {
               try
               {
                  return ((short)(this[this.tableCliente.PaisIdColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value PaisId because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.PaisIdColumn] = value ;
            }

         }

         public bool IsPaisIdNull( )
         {
            return this.IsNull( this.tableCliente.PaisIdColumn) ;
         }

         public void SetPaisIdNull( )
         {
            this[this.tableCliente.PaisIdColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets the Nombre.
         ///  </summary>
         public String PaisNombre
         {
            get {
               try
               {
                  return ((String)(this[this.tableCliente.PaisNombreColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value PaisNombre because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.PaisNombreColumn] = value ;
            }

         }

         public bool IsPaisNombreNull( )
         {
            return this.IsNull( this.tableCliente.PaisNombreColumn) ;
         }

         public void SetPaisNombreNull( )
         {
            this[this.tableCliente.PaisNombreColumn] = System.Convert.DBNull ;
         }

         ///  <summary>
         ///   Gets or sets the Picture.
         ///  </summary>
         public byte[] ClientePicture
         {
            get {
               try
               {
                  return ((byte[])(this[this.tableCliente.ClientePictureColumn])) ;
               }
               catch ( InvalidCastException deklaritException )
               {
                  throw new StrongTypingException( "Cannot get value ClientePicture because it is DBNull.", deklaritException) ;
               }
            }

            set {
               this[this.tableCliente.ClientePictureColumn] = value ;
            }

         }

         public bool IsClientePictureNull( )
         {
            return this.IsNull( this.tableCliente.ClientePictureColumn) ;
         }

         public void SetClientePictureNull( )
         {
            this[this.tableCliente.ClientePictureColumn] = System.Convert.DBNull ;
         }

      }

      public class ClienteRowChangeEvent : EventArgs
      {
         private ClienteRow eventRow ;
         private System.Data.DataRowAction eventAction ;
         public ClienteRowChangeEvent( ClienteRow row ,
                                       DataRowAction action )
         {
            this.eventRow = row ;
            this.eventAction = action ;
         }

         public ClienteRow Row
         {
            get {
               return this.eventRow ;
            }

         }

         public DataRowAction Action
         {
            get {
               return this.eventAction ;
            }

         }

      }

   }

}
